<?php
namespace Admin\Controller;

//use Lib\Controller\HomeBaseController;
use Lib\Controller\BaseController;

class VerifyController extends BaseController{
    
    /**
     * 获取验证码
     */
    public function get_verify() {
        $Verify = new \Think\Verify();
        $Verify->entry(); 
    }
    
    /**
     * 验证验证码
     * @param unknown $code
     * @param string $id
     * @return boolean
     */
    public function check_verify($code, $id = ''){
        $verify = new \Think\Verify();
        return $verify->check($code, $id);
    }
}

?>